<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp"%>
<script type="text/javascript">
	$(function() {
		$('#partInstEditForm').form({
			url : '${path }/partInst/createOK',
			onSubmit : function() {
				progressLoad();
				var isValid = $(this).form('validate');
				if (!isValid) {
					progressClose();
				}
				return isValid;
			},
			success : function(result) {
				progressClose();
				result = $.parseJSON(result);
				if (result.success) {
					parent.$.modalDialog.openner_dataGrid.datagrid('reload');//之所以能在这里调用到parent.$.modalDialog.openner_dataGrid这个对象，是因为user.jsp页面预定义好了
					parent.$.modalDialog.handler.dialog('close');
				} else {
					var form = $('#partInstEditForm');
					parent.$.messager.alert('错误', eval(result.msg), 'error');
				}
			}
		});

	});
</script>
<div class="easyui-layout" data-options="fit:true,border:false">
	<div data-options="region:'center',border:false" title=""
		style="overflow: hidden; padding: 3px;">
		<form id="partInstEditForm" method="post">
			<table class="grid">
				<tr>
					<td>参合登记编号：</td>
					<td><input type="text" name="partNo"
						class="easyui-validatebox" data-options="width: 150"
						value="${partInst.partNo}" /></td>
				</tr>
				<tr>
					<td>家庭编号：</td>
					<td><input type="text" name="familyNo"
						class="easyui-validatebox" data-options="width: 150"
						value="${partInst.familyNo}" /></td>
				</tr>
				<tr>
					<td>成员编号：</td>
					<td><input type="text" name="familyInfoNo"
						class="easyui-validatebox" data-options="width: 150"
						value="${partInst.familyInfoNo}" /></td>
				</tr>
				<tr>
					<td>姓名：</td>
					<td><input type="text" name="name" class="easyui-validatebox"
						data-options="width: 150" value="${partInst.name}" /></td>
				</tr>
				<tr>
					<td>性别：</td>
					<td><input type="text" name="gender"
						class="easyui-validatebox" data-options="width: 150"
						value="${partInst.gender}" /></td>
				</tr>
				<tr>
					<td>年龄：</td>
					<td><input type="text" name="age" class="easyui-validatebox"
						data-options="width: 150" value="${partInst.age}" /></td>
				</tr>
				<tr>
					<td>联系方式：</td>
					<td><input type="text" name="contact"
						class="easyui-validatebox" data-options="width: 150"
						value="${partInst.contact}" /></td>
				</tr>
				<tr>
					<td>家庭地址：</td>
					<td><input type="text" name="address"
						class="easyui-validatebox" data-options="width: 150"
						value="${partInst.address}" /></td>
				</tr>
				<tr>
					<td>参合时间：</td>
					<td><input type="text" name="partTime" class="Wdate"
						placeholder="点击选择时间"
						onclick="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd HH:mm:ss'})"
						readonly="readonly" data-options="width: 150,required:true"
						value="${partInst.partTime}" /></td>
				</tr>
				<tr>
					<td>发票号：</td>
					<td><input type="text" name="invoNo"
						class="easyui-validatebox" data-options="width: 150"
						value="${partInst.invoNo}" /></td>
				</tr>

			</table>
		</form>
	</div>
</div>